package com.base.obj;

import com.alibaba.fastjson.JSONObject;

/**
 * create by yongli on 2021-11-02 15:03
 */

public class ObjectMapper {
    public static void main(String[] args) {
        String data = "{\n\" +\n" +
                "                \"\\t\\\"Z_DOMK\\\": [{\\n\" +\n" +
                "                \"\\t\\t\\\"LABST\\\": \\\"138.000\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"LGOBE\\\": \\\"采购件库\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"LGORT\\\": \\\"1000\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"MAKTX\\\": \\\"玻璃钢板(2)SYFB3595.1.3-2\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"MATNR\\\": \\\"14003793\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"MEINS\\\": \\\"PC\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"NAME1\\\": \\\"三一张家口制造工厂\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"WERKS\\\": \\\"5200\\\"\\n\" +\n" +
                "                \"\\t}, {\\n\" +\n" +
                "                \"\\t\\t\\\"LABST\\\": \\\"200.000\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"LGOBE\\\": \\\"叶片分拣库\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"LGORT\\\": \\\"8000\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"MAKTX\\\": \\\"玻璃钢板(2)SYFB3595.1.3-2\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"MATNR\\\": \\\"14003793\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"MEINS\\\": \\\"PC\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"NAME1\\\": \\\"三一张家口制造工厂\\\",\\n\" +\n" +
                "                \"\\t\\t\\\"WERKS\\\": \\\"5200\\\"\\n\" +\n" +
                "                \"\\t}]\\n\" +\n" +
                "                \"}";
        data =data.replaceAll("\n","");
        data =data.replaceAll("\\\n","");
        System.out.println(data);
        data = data.replace("\t","");
        data = data.replace("\\\t","");
        JSONObject json = JSONObject.parseObject(data);
        System.out.println(data);
        System.out.println(json);
    }
}
